package com.xiaoh.dormitoryrepairreportbackend.model.dto.user;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户响应DTO
 * 不包含敏感信息如密码
 */
@Data
@Schema(description = "用户响应信息")
public class UserResponse implements Serializable {

    /**
     * 主键ID
     */
    @Schema(description = "主键ID")
    private Long id;

    /**
     * 登录账号
     */
    @Schema(description = "登录账号")
    private String accountName;

    /**
     * 用户昵称
     */
    @Schema(description = "用户昵称")
    private String nickName;

    /**
     * 邮箱
     */
    @Schema(description = "邮箱")
    private String email;

    /**
     * 手机号码
     */
    @Schema(description = "手机号码")
    private String phoneNumber;

    /**
     * 用户类型(1:学生, 2:维修工, 3:管理员)
     */
    @Schema(description = "用户类型(1:学生, 2:维修工, 3:管理员)")
    private Integer userType;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;

    private static final long serialVersionUID = 1L;
}
